/**
 * 
 */
package com.planner.core.service.rest.core;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.india.RouteCode;

/**
 * @author gautasa
 *
 */
@XmlRootElement(name="route")
@XmlAccessorType(XmlAccessType.PROPERTY)
public class RestRouteCode {

	private RouteCode routeCode;
	/**
	 * 
	 */
	public RestRouteCode() {
		super();
	}
	public RestRouteCode(RouteCode routeCode) {
		super();
		this.routeCode = routeCode;
	}
	
	@XmlElement
	public String getCode() {
		return routeCode.toString();
	}
	
	@XmlElement
	public String getHex() {
		return routeCode.getHex();
	}
}
